/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-03-18
 * Time:17:22
 */
import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        for (int i = 0; i <999; i++) {
            int bai=i/100;//百位数
            int shi=i%100/10;//十位数
            int ge=i%100%10;//个位数
            if(i==bai*bai*bai+shi*shi*shi+ge*ge*ge){
                System.out.println(i);
            }
        }

//        int a=in.nextInt();
//            System.out.println(a+"这个数字是水仙数");
    }
}
